package com.yy.invoice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author yang1yu
 * @since 2022-09-27
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class Invoice implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "invoice_id", type = IdType.AUTO)
    private Integer invoiceId;

    private String userId;

    /**
     * 发票代码
     */
    private String invoiceCode;

    private String invoiceDate;

    /**
     * 发票名称
     */
    private String invoiceName;

    /**
     * 发票编号
     */
    private String invoiceNum;

    /**
     * 总计
     */
    private String totalAmount;

    /**
     * 校验码后面6位
     */
    private String validate;

    /**
     *  发票保存的URL位置
     */
    private String path;

    /**
     * 发票的MD5值
     */
    private String md5;

    /**
     * 发票使用时间
     */
    private String uploadTime;
}
